$('#img').on('click',function(){
    $('textarea').val(
        editorInfo(
            editStart()+
            textareaBeforeEnter('//input name 配置（必须）')+
            textareaBeforeEnter('edit.config.uploadImgFileName="imageFile";')+
            textareaBeforeEnter('//请求地址（必须）')+
            textareaBeforeEnter('edit.config.uploadImgUrl="/res/uploadImage.do";')+
            textareaBeforeEnter('//json img地址（必须）')+
            textareaBeforeEnter('edit.config.jsonImgSrc="data";')+
            textareaBeforeEnter('//回调函数（可选）')+
            textareaBeforeEnter('edit.config.uploadImgFns={')+
            textareaBeforeEnter(textareaInline1('上传时，注：添加图片由自己写 || 不写为插件自带效果'))+
            textareaBeforeEnter(textareaInline1('onload:function(){'))+
            textareaBeforeEnter(textareaInline2('console.log("onload");'))+
            textareaBeforeEnter(textareaInline1('}'))+
            textareaBeforeEnter(textareaInline1('上传成功'))+
            textareaBeforeEnter(textareaInline1('onsuccess:function(data){'))+
            textareaBeforeEnter(textareaInline2('console.log(data);'))+
            textareaBeforeEnter(textareaInline1('}'))+
            textareaBeforeEnter(textareaInline1('上传失败'))+
            textareaBeforeEnter(textareaInline1('onerror:function(data){'))+
            textareaBeforeEnter(textareaInline2('console.log(data);'))+
            textareaBeforeEnter(textareaInline1('}'))+
            textareaBeforeEnter(textareaInline1('上传超时'))+
            textareaBeforeEnter(textareaInline1('ontimeout:function(data){'))+
            textareaBeforeEnter(textareaInline2('console.log(data);'))+
            textareaBeforeEnter(textareaInline1('}'))+
            textareaBeforeEnter('};')+
            textareaBeforeEnter(editCreat())
        )
    );
});
